//
// Created by JYL on 2024-05-30.
//

#ifndef INC_12_HAL_WHOLE_OS_KEY_H
#define INC_12_HAL_WHOLE_OS_KEY_H

#include "main.h"

#define KB1     HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_0)
#define KB2     HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_1)
#define KB3     HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_2)
#define KB4     HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0)
#define KEY_PORT        (KB1|KB2<<1|KB3<<2|KB4<<3|0xf0)

extern uint8_t Trg,Cont;
void KEY_Read(void);

#endif //INC_12_HAL_WHOLE_OS_KEY_H
